package com.ksd.system.domain;

import com.ksd.common.annotation.Excel;
import com.ksd.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 网络配置对象 sys_network
 * 
 * @author y.wu
 * @date 2025-01-08
 */
public class SysNetwork extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    public static Long defaultId = 1L;
    public static Long eth1_id = 2L;
    public static Long eth2_id = 3L;

    /** 编号 */
    private Long id;

    /** mac地址 */
    @Excel(name = "mac地址")
    private String mac;

    /** ip地址 */
    @Excel(name = "ip地址")
    private String ip;

    /** 子网掩码 */
    @Excel(name = "子网掩码")
    private String subnetMask;

    /** 网关 */
    @Excel(name = "网关")
    private String gateway;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMac(String mac) 
    {
        this.mac = mac;
    }

    public String getMac() 
    {
        return mac;
    }
    public void setIp(String ip) 
    {
        this.ip = ip;
    }

    public String getIp() 
    {
        return ip;
    }
    public void setSubnetMask(String subnetMask) 
    {
        this.subnetMask = subnetMask;
    }

    public String getSubnetMask() 
    {
        return subnetMask;
    }
    public void setGateway(String gateway) 
    {
        this.gateway = gateway;
    }

    public String getGateway() 
    {
        return gateway;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("mac", getMac())
            .append("ip", getIp())
            .append("subnetMask", getSubnetMask())
            .append("gateway", getGateway())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("status", getStatus())
            .append("name", getName())
            .toString();
    }
}
